<?
require '../inc/SQL.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>logado</title>
		<meta name="author" content="Matheus" />
		<!-- Date: 2012-02-23 -->
		<link  rel="stylesheet" type="text/css" href="login.css"/>
		
	</head>
	<body>
						<div id="conteudocima">
					
							<a href="logado.php"><p>Home </p></a>
							<a href="novo.php"><p>Novo </p></a>
							<a href="../js/Javascript/index.php"><p>Cadastrar Produto</p></a>
							<a href="consulta.php"><p>Conulta </p></a>
							
									<p style="margin-right:40px;	 float: right">Admin Logado | <a href="sair.php" style="text-decoration: none; color: #FFFFFF" > Sair</a></p>
			</div>
			
			<div id="conteudoesquerdo">
					<div id="conteudocima2">
								<p  style="margin-top: 10px; margin-left: 70px"> Logados</p>		
							
							<?
								$query = "SELECT *  FROM usuarios WHERE status = 'a'";
								$result = mysql_query($query);
								
								if($result){
									while ($row = mysql_fetch_assoc($result)) {
										echo "<p style='color:#000000; margin-left:70px;'>".$row['usuario']."</p>";
										
									}
								}
							
							?>
								
							
								
					</div>
				
			</div>
			
			
				<!-- <div id="conteudo">
							jonatas			
				</div> -->
		
	</body>
</html>
